package com.zengyan.gd.service;

import com.zengyan.gd.form.GetUserForm;
import com.zengyan.gd.form.OrgLoginForm;
import com.zengyan.gd.model.Event;
import com.zengyan.gd.model.Organization;
import com.zengyan.gd.model.User;
import com.zengyan.gd.utils.ImageType;

import org.springframework.web.multipart.MultipartFile;

import java.util.List;


public interface OrganizationService {

    /**
     * 注册
     * @param organization
     * @return
     */
    Organization register(Organization organization) throws Exception;

    /**
     * @return
     */
    List<Organization> findAllOrgs() throws Exception;

    /**
     *
     * 登陆
     * @param loginForm
     * @return
     * @throws Exception
     */
    Organization login(OrgLoginForm loginForm) throws Exception;

    Organization updateImage(int org_id, MultipartFile file, ImageType type) throws Exception;

    void saveUsersFormFile(int id , List<String> stuNumList) throws Exception;

    GetUserForm getMyUsers(int id) throws Exception;

    Boolean hasOrg(int id) throws Exception;

    Event createEvent(Event event) throws Exception;

    List<User> findUsersByEvent(int event_id) throws Exception;

    void deleteEvent(int id) throws Exception;

    List<Event> getEventsById(int id) throws Exception;

    GetUserForm addMember(int org_id, String stunum);

    GetUserForm deleteMember(int org_id, String stunum);

    List<User> searchMember(int org_id , String message);

    Organization getOrgInfo(int org_id);


    List<User> getPeopleSignUpInEvent(int event_id);

    String createSignUpExcel(int event_id) throws Exception;

    Organization updateDesc(int org_id , String desc )throws  Exception;

    Event updateEventImage(int event_id, MultipartFile file) throws Exception;
}
